add_library(vm86 SHARED msdos.cpp vm86.def)
include_directories(../wine)
add_definitions(-D__i386__ -DHAS_I486 -DSUPPORT_FPU -DNtCurrentTeb=NtCurrentTeb__ -DDECLSPEC_HIDDEN= -Uinline -DPSAPI_VERSION=1)
if (NOT(MSVC))
    string(APPEND CMAKE_CXX_FLAGS " -fpermissive -Wl,--enable-stdcall-fixup ")
endif()
target_link_libraries(vm86 libwine winecrt0 dbghelp.lib Psapi.lib)
set_target_properties(vm86 PROPERTIES PREFIX "")
